package com.hj.dapp.business.budget.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hj.dapp.business.budget.model.Budget;
import com.hj.dapp.business.budget.model.BudgetExportVO;
import com.hj.dapp.business.budget.vo.BudgetBindListVO;
import com.hj.dapp.business.budget.vo.BudgetPageVO;
import com.hj.dapp.business.craft.model.Craft;
import com.hj.dapp.business.project.model.Project;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/24
 */
@Mapper
public interface BudgetMapper extends BaseMapper<Budget> {
    IPage<BudgetPageVO> selectPageVO(Page<Budget> page, @Param("query") Budget query);

    List<Craft> listBindCrafts(@Param("budget") BudgetBindListVO budget);

    BudgetExportVO exportLightAuxiliary(@Param("customerId") Long customerId,@Param("engineerProjectId") Long engineerProjectId);


    List<Project> getProjects(@Param("customerId") Long customerId,@Param("engineerProjectId") Long engineerProjectId);
}
